import request from "@/utils/request";

export const Roles = params => request({
    url: 'roles',
		method:'GET',
		params
})

export const postRoles = data => request({
	url: 'roles',
	method:'POST',
	data
})

export const putRoles = (id,data) => request({
	url:'roles/'+ id,
	method:'PUT',
	data
})

export const deleteRoles = id => request({
	url:'roles/'+id,
	method:'DELETE',
})